//
//  BaseModel.m
//  MemoryTravel
//
//  Created by dllo on 15/12/23.
//  Copyright © 2015年 fcx. All rights reserved.
//

#import "BaseModel.h"

@implementation BaseModel

-(instancetype)initWithDictionary:(NSDictionary *)dictionary{

    self = [super init];

    if (self) {

        [self setValuesForKeysWithDictionary:dictionary];
    }

    return self;
}

+(instancetype)modelWithDictionary:(NSDictionary *)dictionary{

    return [[self alloc] initWithDictionary:dictionary];
}

-(void)setValue:(id)value forUndefinedKey:(NSString *)key{

}

@end
